package com.android.nextBus.JSON;

import java.util.List;

import org.apache.http.impl.client.DefaultHttpClient;


/**
 * This class is responsible for building the URL to 
 * get data from the app engine server 
 *
 */
public class GetBusStopsJSON {
	
	/**
	 * The base url
	 */
	//private static String URL_BASE = "http://10.0.2.2:8888";

	private static String URL_BASE ="http://nextbuscapstone.appspot.com";
	/**
	 * Use this name space to do a specific query on bus stop data
	 */
	private static String REQUEST_BASE_FOR_SPECIFIC_QUERY = "/GetBusStopData?type=";

	/**
	 * namespace for all the bus stop data in the data store
	 */
	private static String REQUEST_BASE = "/GetBusStopData";

	/**
	 * This method returns a JSON String based on the Get request from the server
	 */
	//public static String getBusStops(String platform, boolean request) {
		
//		if(request){
		//	return JSONBusStopHTTPGet.readBusStopJSONFeed(URL_BASE+REQUEST_BASE_FOR_SPECIFIC_QUERY+platform);

		//}else{
			//return JSONBusStopHTTPGet.readBusStopJSONFeed(URL_BASE+REQUEST_BASE);
	
		//}
		
//}
}
